package com.patterns.abstractFortory.addSexFactory.abstractFactory;

import com.patterns.abstractFortory.addSexFactory.humanInterface.Human;

/**
 * Created by Xiao Yiyun on 2017/4/18.
 * 白色人种的抽象工厂
 * 继承人种接口
 * 重写语言和肤色方法，确定其特性
 */
public abstract class WhiteHuman implements Human {
    public void getColor() {
        System.out.println("白色人种的皮肤是白色的");
    }
    public void talk() {
        System.out.println("hello,我是白色人种");
    }
}